#pragma once
#include "Common.h"


namespace Display
{
	class ResourcePool;

	class EXPORT Resource
	{
		unsigned int refs;
		
	public:
		Resource(ResourcePool * pool);
		~Resource(void);

		void AddRef();
		void DeRef();

	protected:
		virtual void OnZeroRefReach() = 0;
		ResourcePool * pool;
	};
}
